package com.jm.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.jm.pojo.AddressBook;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AddressBookService extends IService<AddressBook> {

    boolean setDefault(AddressBook addressBook);

    AddressBook selectByDefault();

    List<AddressBook> selectAllAddress(AddressBook addressBook);

    List<AddressBook> selectAddressByUserId(Long id);
}
